package baseCom.pojo;

import java.util.List;

public class Response {
    private String code;
    private List data;
    private String message;

    public Response(){}

    public Response(String code, List data, String message)
    {
        this.code = code;
        this.data = data;
        this.message = message;
    }

    static public Response success(List data){
        return new Response("200",data,"success");
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "Respose{" +
                "code='" + code + '\'' +
                ", data='" + data + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
